package cn.lili.modules.promotion.entity.vos;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GreenContributionInfoViewVO {
    @ApiModelProperty("工会id")
    private String unionId;

    @ApiModelProperty("工会名")
    private String unionName;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "贡献值数量")
    private Double umber = 0.0;

    @ApiModelProperty(value = "绿色积分值")
    private Double scoreNumber = 0.0;

    @ApiModelProperty("更改后余额")
    private Double afterBalance = 0.0;

    @ApiModelProperty("更改前余额")
    private Double beforeBalance = 0.0;

    @ApiModelProperty("时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String type;

    private String status;

    private String orderSn;
}
